package com.service.mpl;

import java.util.List;

import com.entity.User;
import com.mapper.UserMapper;
import com.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * systemService业务层处理
 *
 * @author ruoyi
 * @date 2021-07-02
 */
@Service
public class UserServiceImpl implements IUserService
{
    @Autowired
    private UserMapper UserMapper;

    /**
     * 查询system
     *
     * @param uId systemID
     * @return system
     */
    @Override
    public User selectUserById(Long uId)
    {
        return UserMapper.selectUserById(uId);
    }

    /**
     * 查询system列表
     *
     * @param User system
     * @return system
     */
    @Override
    public List<User> selectUserList(User User)
    {
        return UserMapper.selectUserList(User);
    }

    /**
     * 新增system
     *
     * @param User system
     * @return 结果
     */
    @Override
    public int insertUser(User User)
    {
        return UserMapper.insertUser(User);
    }

    /**
     * 修改system
     *
     * @param User system
     * @return 结果
     */
    @Override
    public int updateUser(User User)
    {
        return UserMapper.updateUser(User);
    }

    /**
     * 删除system对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
//    @Override
//    public int deleteUserByIds(String ids)
//    {
////        return UserMapper.deleteUserByIds(Convert.toStrArray(ids));
//        return 0;
//    }

    /**
     * 删除system信息
     *
     * @param uId systemID
     * @return 结果
     */
    @Override
    public int deleteUserById(Long uId)
    {
        return UserMapper.deleteUserById(uId);
    }


}
